﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace BSCore
{
    public class SubTextureFrame:Frame
    {
        public Vector2 SrcPosition { get; set; }

        public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Vector2 position)
        {
                spriteBatch.Draw(TextureSheet.Texture, position, 
                    new Rectangle((int)SrcPosition.X,(int)SrcPosition.Y,(int)Size.X,(int)Size.Y),Color.White);
        }
    }
}
